package com.config;

import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Configurable
@PropertySource({"classpath:application.properties"})
@Component
@Data
@Getter
@Setter
@NoArgsConstructor
public class HadoopConfiguration {
    private static String userGood = "user_good";
    private static String dayVisit = "day_visit";
    @Value("${hadoop.input}")
    private String hadoopInput;
    @Value("${hadoop.output}")
    private String hadoopOutput;
    @Value("${hadoop.local}")
    private String hadoopLocal;

    public static String getUserGood() {
        return userGood;
    }

    public static String getDayVisit() {
        return dayVisit;
    }

    public String getHadoopInput() {
        return hadoopInput;
    }

    public String getHadoopOutput() {
        return hadoopOutput;
    }

    public String getHadoopLocal() {
        return hadoopLocal;
    }
}
